package com.wjr.braveheart.eventbus;

public class MessageEvent {
    private String mTag;
    private int mRequestCode;
    private int mResponseCode;
    private String mMessage;

    public MessageEvent(int requestCode, int responseCode, String message) {
        this.mRequestCode = requestCode;
        this.mResponseCode = responseCode;
        this.mMessage = message;
    }

    public MessageEvent(String tag, int responseCode, String message) {
        this.mTag = tag;
        this.mRequestCode = mRequestCode;
        this.mMessage = mMessage;
    }

    public int getRequestCode() {
        return mRequestCode;
    }

    public void setRequestCode(int mRequestCode) {
        this.mRequestCode = mRequestCode;
    }

    public int getResponseCode() {
        return mResponseCode;
    }

    public void setResponseCode(int mResponseCode) {
        this.mResponseCode = mResponseCode;
    }

    public String getMessage() {
        return mMessage;
    }

    public void setMessage(String message) {
        this.mMessage = message;
    }

    @Override
    public String toString() {
        return "MessageEvent{" +
                "RequestCode=" + mRequestCode +
                ", ResponseCode=" + mResponseCode +
                ", message='" + mMessage + '\'' +
                '}';
    }
}
